testoffscreen: Remove deprecated calls
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jan 2016 16:50:22 +0000 (11:50 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jan 2016 16:54:07 +0000 (11:54 -0500)
Not doing these calls doesn't seem to affect the demo,
so lets just remove them.

tests/gtkoffscreenbox.c

index 29140a1f4f45ef98f39c29495b4f7057444a7ca1..2fb20ef7db3c319ead051dcace5cfaa5ce2d4a43 100644 (file)
@@ -346,9 +346,6 @@ gtk_offscreen_box_realize (GtkWidget *widget)
                    G_CALLBACK (offscreen_window_from_parent2), offscreen_box);
 
   context = gtk_widget_get_style_context (widget);
-  gtk_style_context_set_background (context, window);
-  gtk_style_context_set_background (context, offscreen_box->offscreen_window1);
-  gtk_style_context_set_background (context, offscreen_box->offscreen_window2);
 
   gdk_window_show (offscreen_box->offscreen_window1);
   gdk_window_show (offscreen_box->offscreen_window2);